create.py:
Set the name of the vm to the config file's basename if no name is
specified in the config file or on the commandline.
opts.py:
Handle trailing getopt arguments correctly.
else:
opts.load_defconfig()
preprocess(opts, opts.vals)
+ if not opts.getopt('name') and opts.getopt('defconfig'):
+ opts.setopt('name', os.path.basename(opts.getopt('defconfig')))
config = make_config(opts.vals)
if opts.vals.dryrun:
PrettyPrint.prettyprint(config)
print >>sys.stderr, "Error: Unknown option:", k
self.usage()
+ if not args:
+ break
+
# then process the 1st arg
(arg,args) = (args[0], args[1:])